package com.dex4d.ui.wallet.activity;

import android.view.View;
import android.widget.TextView;

import com.dex4d.R;
import com.dex4d.core.AppToolBarBaseActivity;
import com.dex4d.ui.demo.HomeActivity;
import com.dex4d.utils.Commons;

import butterknife.BindView;

/**
 * Created by chengyuchun on 2018/11/12.
 */
public class SendSuccessActivity extends AppToolBarBaseActivity {
    @BindView(R.id.tv_pay_result_desc)
    TextView tv_pay_result_desc;

    @BindView(R.id.tv_pay_amount)
    TextView tv_pay_amount;

    @BindView(R.id.tv_trans_id)
    TextView tv_trans_id;

    @BindView(R.id.tv_gas)
    TextView tv_gas;

    @Override
    protected void initToolbar() {
        hideBackView();
        showRightDone();
        getToolbarRight().setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                openActivity(HomeActivity.class);
            }
        });
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_referral_success;
    }

    @Override
    protected void initVariables() {
        tv_pay_result_desc.setText(getString(R.string.send_amount));
        tv_pay_amount.setText(getIntent().getStringExtra(Commons.BUNDLE_KEYS.AMOUNT));
        tv_gas.setText(getIntent().getStringExtra(Commons.BUNDLE_KEYS.GAS_LIMIT));
        tv_trans_id.setText(getIntent().getStringExtra(Commons.BUNDLE_KEYS.TRANS_HASH));
    }

    @Override
    protected void loadData() {

    }
}
